package com.glory.eapequipmentmonitor.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.eapequipmentmonitor.R;
import com.glory.eapequipmentmonitor.bean.EqpStatusBean;

import java.util.List;


public class EqpStatusListAdapter extends BaseQuickAdapter<EqpStatusBean, BaseViewHolder> {

    public EqpStatusListAdapter(@Nullable List<EqpStatusBean> data) {
        super(R.layout.adapter_many_eqp_list, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, final EqpStatusBean item) {
        helper.setText(R.id.tvEqpName, item.getEQPSTATUS());
        helper.setText(R.id.tvEqpNum, item.getEQPNUM());
    }
}
